home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / lib / partman / init.d / 03kernelmodules_ext3 < prev    next >
Text File  |  2008-10-29  |  316b  |  21 lines

  1. #!/bin/sh
  2.  
  3. mkdir -p /var/lib/partman
  4.  
  5. cat /proc/modules |
  6. while read module_name x; do
  7.     if [ "$module_name" = ext3 ]; then
  8.         >/var/lib/partman/ext3
  9.         exit 0
  10.     fi
  11. done
  12.  
  13. if modprobe ext3 >/dev/null 2>/dev/null; then
  14.     >/var/lib/partman/ext3
  15.     exit 0
  16. fi
  17.  
  18. if grep -q ext3 /proc/filesystems; then
  19.     >/var/lib/partman/ext3
  20. fi
  21.